package com.weeho.dongyong.service;

import com.weeho.dongyong.dao.HoldGoodsDao;
import com.weeho.dongyong.entity.HoldGoods;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HoldGoodsService {
    @Autowired
    private HoldGoodsDao holdGoodsDao;

    public int insertSelective(HoldGoods record) {
        return holdGoodsDao.insertSelective(record);
    }

    public int updateByPrimaryKeySelective(HoldGoods record) {
        return holdGoodsDao.updateByPrimaryKeySelective(record);
    }

    public int deleteByPrimaryKey(String id) {
        return holdGoodsDao.deleteByPrimaryKey(id);
    }

    public HoldGoods selectByPrimaryKey(String id) {
        return holdGoodsDao.selectByPrimaryKey(id);
    }

    public List<HoldGoods> selectByCondition(HoldGoods record) {
        return holdGoodsDao.selectByCondition(record);
    }

    public List<HoldGoods> getAll(){
        return selectByCondition(null);
    }
}